package com.ia.uniweb.service;

import me.prettyprint.hector.api.Keyspace;

import com.ia.uniweb.model.Student;

public class StudentServiceImpl extends
		AbstractColumnFamilyService<String, Student> implements StudentService {

	public StudentServiceImpl(Keyspace keySpace) {
		super(keySpace, String.class, Student.class, "Students");
	}

	public void save(Student student) {
		super.save(student.getRegistrationNumber(), student);
	}

	public void delete(Student student) {
		delete(student.getRegistrationNumber());
	}

}
